<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>吴苏苏 - 吴苏苏の博客</title><meta name="keywords" content="吴苏苏 计算机 软件工程 博客 前端 HTML 互联网 hexo"><meta name="author" content="吴苏苏"><meta name="copyright" content="吴苏苏"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="博客因兴趣诞生,在不断完善中">
<meta property="og:type" content="website">
<meta property="og:title" content="吴苏苏">
<meta property="og:url" content="https://codesnx.gitee.io/index.html">
<meta property="og:site_name" content="吴苏苏">
<meta property="og:description" content="博客因兴趣诞生,在不断完善中">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://i.328888.xyz/2023/01/31/83V8c.jpeg">
<meta property="article:author" content="吴苏苏">
<meta property="article:tag" content="吴苏苏 计算机 软件工程 博客 前端 HTML 互联网 hexo">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://i.328888.xyz/2023/01/31/83V8c.jpeg"><link rel="shortcut icon" href="https://i.328888.xyz/2023/01/31/83V8c.jpeg"><link rel="canonical" href="https://codesnx.gitee.io/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
  noticeOutdate: {"limitDay":365,"position":"top","messagePrev":"一年之内的产物","messageNext":"技术可能存在过期"},
  highlight: {"plugin":"prismjs","highlightCopy":false,"highlightLang":true,"highlightHeightLimit":200},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: {"limitCount":50,"languages":{"author":"作者: 吴苏苏","link":"链接: ","source":"来源: 吴苏苏","info":"著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。"}},
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    jQuery: 'https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js',
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
    },
    fancybox: {
      js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
      css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
    }
  },
  isPhotoFigcaption: true,
  islazyload: true,
  isanchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '吴苏苏',
  isPost: false,
  isHome: true,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2023-01-31 16:43:23'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if (GLOBAL_CONFIG_SITE.isHome && /iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    document.addEventListener('pjax:complete', detectApple)})(window)</script><link defer rel="stylesheet" href="/css/customm.css" ><link defer rel="stylesheet" href="https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/css/icon.css"><link defer rel="stylesheet" href="https://cdn.jsdelivr.net/gh/HCLonely/images@master/others/heartbeat.min.css"><link defer rel="stylesheet" href="https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/css/background.css"><meta name="generator" content="Hexo 5.2.0">
<style>.github-emoji { position: relative; display: inline-block; width: 1.2em; min-height: 1.2em; overflow: hidden; vertical-align: top; color: transparent; }  .github-emoji > span { position: relative; z-index: 10; }  .github-emoji img, .github-emoji .fancybox { margin: 0 !important; padding: 0 !important; border: none !important; outline: none !important; text-decoration: none !important; user-select: none !important; cursor: auto !important; }  .github-emoji img { height: 1.2em !important; width: 1.2em !important; position: absolute !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important; user-select: none !important; cursor: auto !important; } .github-emoji-fallback { color: inherit; } .github-emoji-fallback img { opacity: 0 !important; }</style>
<link rel="alternate" href="/atom.xml" title="吴苏苏" type="application/atom+xml">
</head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "" data-lazy-src="https://i.328888.xyz/2023/01/31/83V8c.jpeg" onerror="onerror=null;src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/archives/"><div class="headline">文章</div><div class="length-num">12</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/tags/"><div class="headline">标签</div><div class="length-num">10</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/categories/"><div class="headline">分类</div><div class="length-num">5</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fa fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-archive"></i><span> 归档</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/artitalk/"><i class="fa-fw fas fa-book"></i><span> 说说</span></a></li><li><a class="site-page child" href="/archives/"><i class="fa-fw fa fa-archive"></i><span> 时轴</span></a></li><li><a class="site-page child" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-heartbeat"></i><span> 清单</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/List/music/"><i class="fa-fw fa fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/List/gallery/"><i class="fa-fw fa fa-image"></i><span> 相册</span></a></li><li><a class="site-page child" href="/List/movies/"><i class="fa-fw fa fa-film"></i><span> 视频</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/comments/"><i class="fa-fw fa fa-paper-plane"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/tools/"><i class="fa-fw fa fa-suitcase"></i><span> 百宝箱</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fa fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fa fa-heart"></i><span> 关于我</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('https://i.328888.xyz/img/2022/12/03/iqroX.png')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">吴苏苏</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fa fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-archive"></i><span> 归档</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/artitalk/"><i class="fa-fw fas fa-book"></i><span> 说说</span></a></li><li><a class="site-page child" href="/archives/"><i class="fa-fw fa fa-archive"></i><span> 时轴</span></a></li><li><a class="site-page child" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-heartbeat"></i><span> 清单</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/List/music/"><i class="fa-fw fa fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/List/gallery/"><i class="fa-fw fa fa-image"></i><span> 相册</span></a></li><li><a class="site-page child" href="/List/movies/"><i class="fa-fw fa fa-film"></i><span> 视频</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/comments/"><i class="fa-fw fa fa-paper-plane"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/tools/"><i class="fa-fw fa fa-suitcase"></i><span> 百宝箱</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fa fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fa fa-heart"></i><span> 关于我</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">吴苏苏</h1><div id="site-subtitle"><span id="subtitle"></span></div><div id="site_social_icons"><a class="social-icon" href="https://github.com/CodeSnX" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="tencent://AddContact/?fromId=45&amp;fromSubId=1&amp;subcmd=all&amp;uin=2816540069&amp;website=www.qtxml.cn" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="post_cover left_radius"><a href="/posts/atm.html" title="简易ATM">     <img class="post_bg" src= "" data-lazy-src="https://tse1-mm.cn.bing.net/th/id/OIP-C.sL2frdPm5Je1ademHs5KLgAAAA?w=115&amp;h=180&amp;c=7&amp;r=0&amp;o=5&amp;dpr=1.6&amp;pid=1.7" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="简易ATM"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/atm.html" title="简易ATM">简易ATM</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-02-03T09:21:59.000Z" title="发表于 2022-02-03 17:21:59">2022-02-03</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/JavaScript/">JavaScript</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/atm.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/atm.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
概述使用JavaScript实现简易atm操作。
JavaScript代码// 初始余额为100
var money = 100;
// 初始flag为true
var flag = true;

// 循环
while (flag){
	// 定义索引index，获取输入值
	var index = prompt('请输入您要的操作：\n 1.存钱 \n 2.取钱 \n 3.显示余额 \n 4.退出');
	// 判断
	switch (index){
		/**
		 * 存钱
		 * 输入存的金额
		 * 原有存款加上新增金额
		 * 弹框显示当前存款
		 */
		case '1':
			var addMoney = parseFloat(prompt('请输入您要存的金额：'));
			money += addMoney;
			alert('您当前存款为：' + money);
			break;
		/**
		 * 取钱
		 * 输入取钱金额
		 * 判断所取金额是否小于存款
		 * 小于：存款减去所取金额，并提示成功和显示余额
		 * ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/posts/learn-online.html" title="学成在线">     <img class="post_bg" src= "" data-lazy-src="https://i.328888.xyz/2023/01/29/jd7dN.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="学成在线"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/learn-online.html" title="学成在线">学成在线</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-01-31T13:12:55.000Z" title="发表于 2022-01-31 21:12:55">2022-01-31</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%9D%99%E6%80%81%E9%A1%B5%E9%9D%A2/">静态页面</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/learn-online.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/learn-online.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
概述使用HTML、CSS实现仿学成在线静态网页,并部署到服务器。
页面效果

页面地址页面地址
HTML代码导航栏模块&lt;!-- 导航栏 --&gt;
&lt;div class="nav"&gt;
	&lt;img src="https://hugp.top/images/%E5%AD%A6%E6%88%90%E5%9C%A8%E7%BA%BF.png" alt="学成在线"&gt;
	&lt;div&gt;
		&lt;ul&gt;
			&lt;li&gt;&lt;a href=""&gt;首页&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href=""&gt;课程&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href=""&gt;职业规划&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/div&gt;
	&lt;input type="text" name="搜索" id="search"&gt;
	&lt;button&gt;&lt;/button&gt ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/posts/bubbling-sorting.html" title="冒泡排序法">     <img class="post_bg" src= "" data-lazy-src="https://cache.yisu.com/upload/information/20200622/113/38161.jpg" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="冒泡排序法"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/bubbling-sorting.html" title="冒泡排序法">冒泡排序法</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-01-20T07:11:25.000Z" title="发表于 2022-01-20 15:11:25">2022-01-20</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/JavaScript/">JavaScript</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/bubbling-sorting.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/bubbling-sorting.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
概述使用JavaScript实现冒泡排序法两种排序方式。
页面效果

JavaScript代码第一种：从小到大// 排序: 从小到大
// 原理: 大的往后冒
// 初始数组,长度为n
var arr = [32, 23, 35, 23, 55, 12];
// 循环n-1次
for (var i = 0; i &lt; arr.length - 1; i++){
	/**
	 * 第一次
	 * 32 23 35 23 55 12 初始
	 * 23 32 35 23 55 12
	 *    32 35 23 55 12
	 *       23 35 55 12
	 *          35 55 12
	 *             12 55
	 * 第二次
	 * 23 32 23 35 12 55 初始
	 * 23 32 23 35 12
	 *    23 32 35 12
	 *       32 35 12
	 *          12 35
	 *第三次
	 * 23 23 32 12 35 55 初始
	 * 23 23 32 12
	 *  ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/posts/flip-array.html" title="翻转数组">     <img class="post_bg" src= "" data-lazy-src="https://i.328888.xyz/2023/01/28/jInkq.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="翻转数组"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/flip-array.html" title="翻转数组">翻转数组</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-01-17T05:31:35.000Z" title="发表于 2022-01-17 13:31:35">2022-01-17</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/JavaScript/">JavaScript</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/flip-array.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/flip-array.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
概述在JavaScript中,翻转数组的两种方式
页面效果

JavaScript代码// 第一种,首尾交换
// 初始数组
var arr = [1,2,3,4,5,6,7];
// 循环二分之一数组长度
for (var i = 0; i &lt; arr.length/2; i++){
	// 借助temp交换
	var temp = arr[i];
	arr[i] = arr[arr.length - 1 - i];
	arr[arr.length- 1 - i] = temp;
}
// 打印
console.log(arr);

// 第二种,借助新数组
// 初始数组
var arr1 = ['a','b','c','d','e','f','g'];
// 初始新数组
var newArr = new Array();
// 循环
for (var i = 0; i &lt; arr1.length; i++){
	// 新数组依次添加原数组从末位开始向首位的值
	newArr[newArr.length] = arr1[arr1.length - 1 -  ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/posts/js-demo.html" title="1~100累加值(跳过个位数为3的数)">     <img class="post_bg" src= "" data-lazy-src="https://ts1.cn.mm.bing.net/th/id/R-C.143e9730156b68ecce63f69fcd4e4b21?rik=UBdtVzTivphDGw&amp;riu=http%3a%2f%2fwww.ikzai.cn%2fuploads%2f200526%2f1-2005261U00W23.jpg&amp;ehk=T5JBLtOr69VzejyT0cLCNQPVbJYCcUbcKehnP6tYV3I%3d&amp;risl=&amp;pid=ImgRaw&amp;r=0" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="1~100累加值(跳过个位数为3的数)"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/js-demo.html" title="1~100累加值(跳过个位数为3的数)">1~100累加值(跳过个位数为3的数)</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-01-14T11:22:33.000Z" title="发表于 2022-01-14 19:22:33">2022-01-14</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/JavaScript/">JavaScript</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/js-demo.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/js-demo.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
概述1~100累加值,跳过个位数为3的数
JavaScript代码// 定义初始累计值
var num = 0;
// 遍历1~100
for (var i = 1;i &lt;= 100; i++){
	// 判断个位数是否为3
	if (i % 10 === 3) {
		// 跳过循环
		continue;
	}
	// 满足条件相加
	num += i;
}
// 打印
console.log(num);
</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/posts/nine.html" title="九九乘法表">     <img class="post_bg" src= "" data-lazy-src="https://i.328888.xyz/2023/01/27/bQwqX.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="九九乘法表"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/nine.html" title="九九乘法表">九九乘法表</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-01-11T01:32:34.000Z" title="发表于 2022-01-11 09:32:34">2022-01-11</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/JavaScript/">JavaScript</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/nine.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/nine.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
概述使用JavaScript实现九九乘法表
页面效果

JavaScript代码// 定义字符串,用于汇总
var str = "";
// 外层循环,共九行
for(var i = 1; i &lt;= 9; i++){
	// 内层循环,一列至九列依次递增
	for(var j = 1; j &lt;= i; j++){
		// 汇总到字符串str中
		str += j + " × " + i + " = " + j * i + "\t";
	}
	// 换行
	str += "\n";
}
// 输出
console.log(str);



</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/posts/form-demo3.html" title="form表单-demo3">     <img class="post_bg" src= "" data-lazy-src="https://i.328888.xyz/2022/12/08/frWUk.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="form表单-demo3"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/form-demo3.html" title="form表单-demo3">form表单-demo3</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-01-08T06:21:43.000Z" title="发表于 2022-01-08 14:21:43">2022-01-08</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/HTML/">HTML</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/form-demo3.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/form-demo3.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
概述实现简单的form表单样式及效果
页面效果

html代码&lt;form action="" class="myform" method="post"&gt;
	&lt;div class="onelist"&gt;
		&lt;label for="username"&gt;手机号&lt;/label&gt;
		&lt;input type="text" name="username" id="username" placeholder="请输入手机号码" pattern="^1[0-9]{10}$" oninput="this.setCustomValidity('')" oninvalid="this.setCustomValidity('请输入正确的手机号码')" required&gt;                                   
	&lt;/div&gt;
	&lt;div class="onelist"&gt;
		&lt;label for="password"&gt;密码&lt;/label&gt;
		&lt;inpu ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/posts/form-demo2.html" title="form表单-demo2">     <img class="post_bg" src= "" data-lazy-src="https://i.328888.xyz/2022/12/06/VJAok.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="form表单-demo2"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/form-demo2.html" title="form表单-demo2">form表单-demo2</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-01-06T11:31:45.000Z" title="发表于 2022-01-06 19:31:45">2022-01-06</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/HTML/">HTML</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/form-demo2.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/form-demo2.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
概述实现简单的邮箱验证及样式效果
页面效果

html代码&lt;div class="container"&gt;
	&lt;input type="email" name="" id="mail" required placeholder="输入邮箱"&gt;
	&lt;span class="title"&gt;邮箱&lt;/span&gt;
	&lt;label for="mail"&gt;&lt;/label&gt;
&lt;/div&gt;

css代码&lt;style&gt;
	.container{
		margin: 100px;
		/* 相 对 定 位 */
		position: relative;
	}
	input{
		border: 1px solid #999;
		outline: 0;
		width: 140px;
		height: 30px;
		line-height: 30px;
		/* 文 字 缩 进 */
		text-indent: 36px;
		/* 过 渡 效 果 */
		transition: all . ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/posts/form-demo1.html" title="form表单-demo1">     <img class="post_bg" src= "" data-lazy-src="https://i.328888.xyz/2022/12/05/VBGrA.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="form表单-demo1"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/form-demo1.html" title="form表单-demo1">form表单-demo1</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-01-02T01:41:47.000Z" title="发表于 2022-01-02 09:41:47">2022-01-02</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/HTML/">HTML</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/form-demo1.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/form-demo1.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
概述实现简单的表单
页面效果

html代码&lt;div class="container"&gt;
	&lt;form action="#"&gt;
		&lt;input type="name" name="name" id="username" required&gt;&lt;label for="username"&gt;名称&lt;/label&gt;
		&lt;input type="email" name="mail" id="mail" required&gt;&lt;label for="mail"&gt;邮箱&lt;/label&gt;
		&lt;input type="tel" name="phone" id="phone"&gt;&lt;label for="phone"&gt;手机&lt;/label&gt;
		&lt;input type="url" name="url" id="Url"&gt;&lt;label for="Url"&gt;网址&lt;/label&gt;
		
		&lt;select name="#" id=""& ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/posts/form.html" title="form表单查缺补漏">     <img class="post_bg" src= "" data-lazy-src="https://ts1.cn.mm.bing.net/th/id/R-C.5edcb9e253fa254ee3554ee5823bac54?rik=oobRDHKAe21dyg&amp;riu=http%3a%2f%2fwww.52design.com%2fpic%2f20174%2f201747105636100.jpg&amp;ehk=nElvCzSBHSlc3f3reljNeQXPTtcqSg4w8xiWOnF8lyU%3d&amp;risl=&amp;pid=ImgRaw&amp;r=0" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="form表单查缺补漏"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/form.html" title="form表单查缺补漏">form表单查缺补漏</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-12-27T02:51:45.000Z" title="发表于 2021-12-27 10:51:45">2021-12-27</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/HTML/">HTML</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/form.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/form.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
学习一&lt;form action="www.baidu.com" method="post"&gt;
    &lt;input type="text" name="" id="" value="只读可提交" readonly&gt;
    &lt;input type="text" name="" id="" value="只读不可提交" disabled&gt;
    &lt;label for=""&gt;姓名&lt;/label&gt;&lt;input type="text" name="" id="" value="最多  
    可输入的字符数量" maxlength="3" placeholder="提示"&gt;
    
    &lt;select name="" id="" multiple size="2"&gt;
        &lt;option value="" selected&gt;1&lt;/option&gt;
        &lt;option value=""&gt;2&lt;/option&gt;
        ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/posts/http.html" title="HTTP协议">     <img class="post_bg" src= "" data-lazy-src="https://www.reliablesoft.net/wp-content/uploads/2019/05/permalinks.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="HTTP协议"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/http.html" title="HTTP协议">HTTP协议</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-12-23T06:52:44.000Z" title="发表于 2021-12-23 14:52:44">2021-12-23</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/HTTP%E5%8D%8F%E8%AE%AE/">HTTP协议</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/http.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/http.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
概念它是基于TCP协议的应用层传输协议，简单来说就是客户端和服务端进行数据传输的一种规则。
请求（1）请求行

    请求方法：GET POST PUT DELETE

        HEAD: 和GET基本一致，不过只返回内容

        TRACE：借助代理上网，代理访问某网站之后，确定代理是否修改HTTP请求，可以使用TRACE测试一下，该服务器会把最后收到的请求返回

        OPTIONS：返回服务器可用的请求方法

        注：这些请求方法虽然HTTP协议规定，但WEB SERVER未必允许或支持这些方法。

    请求路径：url的一部分

    所用的协议

（2）请求头信息

（3）请求主体信息

（4）头信息结束后和主体信息之间要空一行

例：

    POST /1.php HTTP/1.1

    HOST:localhost

    Content-length:5


    age=3
&nbsp;
响应(1)响应行

    协议

    状态码

        常见状态码：

            ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/posts/md.html" title="markdown">     <img class="post_bg" src= "" data-lazy-src="https://www.runoob.com/wp-content/uploads/2019/03/iconfinder_markdown_298823.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="markdown"></a></div><div class="recent-post-info"><a class="article-title" href="/posts/md.html" title="markdown">markdown</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-12-03T03:52:04.000Z" title="发表于 2021-12-03 11:52:04">2021-12-03</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Markdown/">Markdown</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a href="/posts/md.html#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/posts/md.html" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">相遇皆是缘分
markdown常用语法标题语法标题共有六个级别,从1~6依次为#、##、###、####、#####、######（使用时须以空格隔开）
样例

段落语法无需标记，若分段则以空行隔开
换行语法在行末加两个或多个空格即可换行
强调语法粗体在所需文本前后各加两个*号或两个_ ;
斜体在所需文本前后各加一个*号或_.
样例
引用语法创建块引用需在段落前加&gt;
也可创建多个段落的块引用，须在段落之间的空行加&gt;
也可创建块引用的嵌套，即在所需嵌套的块引用前加&gt;&gt;
样例

列表语法有序列表：在每个列表项前加数字并紧跟一个英文句点（数字可不按顺序排列，但应当以1开始）
无序列表：在每个列表项前加-、* 或 + 。缩进一个或多个列表项可创建嵌套列表。
样例

代码语法将所需要的文本用``包裹(空格隔开)，若需将``展示出来，可用`` ``将其包裹
样例

分割线语法在空行添加三个或多个* 、 - 、_ 可创建分割线（不可包含其它内容）
链接语法1. [超链接显示名](超链接地址 "超链接title")
2. 也可以使用尖括号可把URL或者email地址括起来，变成 ...</div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src= "" data-lazy-src="https://i.328888.xyz/2023/01/31/83V8c.jpeg" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">吴苏苏</div><div class="author-info__description">博客因兴趣诞生,在不断完善中</div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">12</div></a></div><div class="card-info-data-item is-center"><a href="/tags/"><div class="headline">标签</div><div class="length-num">10</div></a></div><div class="card-info-data-item is-center"><a href="/categories/"><div class="headline">分类</div><div class="length-num">5</div></a></div></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://blog.snx.icu"><i class="fab fa-home"></i><span>个人主页</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/CodeSnX" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="tencent://AddContact/?fromId=45&amp;fromSubId=1&amp;subcmd=all&amp;uin=2816540069&amp;website=www.qtxml.cn" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">流水不腐，户枢不蠹，民生在勤。</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/posts/atm.html" title="简易ATM"><img src= "" data-lazy-src="https://tse1-mm.cn.bing.net/th/id/OIP-C.sL2frdPm5Je1ademHs5KLgAAAA?w=115&amp;h=180&amp;c=7&amp;r=0&amp;o=5&amp;dpr=1.6&amp;pid=1.7" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="简易ATM"/></a><div class="content"><a class="title" href="/posts/atm.html" title="简易ATM">简易ATM</a><time datetime="2022-02-03T09:21:59.000Z" title="发表于 2022-02-03 17:21:59">2022-02-03</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/learn-online.html" title="学成在线"><img src= "" data-lazy-src="https://i.328888.xyz/2023/01/29/jd7dN.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="学成在线"/></a><div class="content"><a class="title" href="/posts/learn-online.html" title="学成在线">学成在线</a><time datetime="2022-01-31T13:12:55.000Z" title="发表于 2022-01-31 21:12:55">2022-01-31</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/bubbling-sorting.html" title="冒泡排序法"><img src= "" data-lazy-src="https://cache.yisu.com/upload/information/20200622/113/38161.jpg" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="冒泡排序法"/></a><div class="content"><a class="title" href="/posts/bubbling-sorting.html" title="冒泡排序法">冒泡排序法</a><time datetime="2022-01-20T07:11:25.000Z" title="发表于 2022-01-20 15:11:25">2022-01-20</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/flip-array.html" title="翻转数组"><img src= "" data-lazy-src="https://i.328888.xyz/2023/01/28/jInkq.png" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="翻转数组"/></a><div class="content"><a class="title" href="/posts/flip-array.html" title="翻转数组">翻转数组</a><time datetime="2022-01-17T05:31:35.000Z" title="发表于 2022-01-17 13:31:35">2022-01-17</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/js-demo.html" title="1~100累加值(跳过个位数为3的数)"><img src= "" data-lazy-src="https://ts1.cn.mm.bing.net/th/id/R-C.143e9730156b68ecce63f69fcd4e4b21?rik=UBdtVzTivphDGw&amp;riu=http%3a%2f%2fwww.ikzai.cn%2fuploads%2f200526%2f1-2005261U00W23.jpg&amp;ehk=T5JBLtOr69VzejyT0cLCNQPVbJYCcUbcKehnP6tYV3I%3d&amp;risl=&amp;pid=ImgRaw&amp;r=0" onerror="this.onerror=null;this.src='https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/img/friend_404.gif'" alt="1~100累加值(跳过个位数为3的数)"/></a><div class="content"><a class="title" href="/posts/js-demo.html" title="1~100累加值(跳过个位数为3的数)">1~100累加值(跳过个位数为3的数)</a><time datetime="2022-01-14T11:22:33.000Z" title="发表于 2022-01-14 19:22:33">2022-01-14</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
            <i class="fas fa-folder-open"></i>
            <span>分类</span>
            
            </div>
            <ul class="card-category-list" id="aside-cat-list">
            <li class="card-category-list-item "><a class="card-category-list-link" href="/categories/HTML/"><span class="card-category-list-name">HTML</span><span class="card-category-list-count">4</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/HTTP%E5%8D%8F%E8%AE%AE/"><span class="card-category-list-name">HTTP协议</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/JavaScript/"><span class="card-category-list-name">JavaScript</span><span class="card-category-list-count">5</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Markdown/"><span class="card-category-list-name">Markdown</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E9%9D%99%E6%80%81%E9%A1%B5%E9%9D%A2/"><span class="card-category-list-name">静态页面</span><span class="card-category-list-count">1</span></a></li>
            </ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/tags/CSS/" style="font-size: 1.1em; color: #999">CSS</a> <a href="/tags/HTML/" style="font-size: 1.5em; color: #99a9bf">HTML</a> <a href="/tags/HTTP%E5%8D%8F%E8%AE%AE/" style="font-size: 1.1em; color: #999">HTTP协议</a> <a href="/tags/JavaScript/" style="font-size: 1.5em; color: #99a9bf">JavaScript</a> <a href="/tags/Markdown/" style="font-size: 1.1em; color: #999">Markdown</a> <a href="/tags/form%E8%A1%A8%E5%8D%95/" style="font-size: 1.3em; color: #99a1ac">form表单</a> <a href="/tags/%E4%B9%9D%E4%B9%9D%E4%B9%98%E6%B3%95%E8%A1%A8/" style="font-size: 1.1em; color: #999">九九乘法表</a> <a href="/tags/%E5%86%92%E6%B3%A1%E6%8E%92%E5%BA%8F%E6%B3%95/" style="font-size: 1.1em; color: #999">冒泡排序法</a> <a href="/tags/%E7%AE%80%E6%98%93ATM/" style="font-size: 1.1em; color: #999">简易ATM</a> <a href="/tags/%E7%BF%BB%E8%BD%AC%E6%95%B0%E7%BB%84/" style="font-size: 1.1em; color: #999">翻转数组</a></div></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/02/"><span class="card-archive-list-date">二月 2022</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/01/"><span class="card-archive-list-date">一月 2022</span><span class="card-archive-list-count">8</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/12/"><span class="card-archive-list-date">十二月 2021</span><span class="card-archive-list-count">3</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">12</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2021-05-19T16:00:00.000Z"></div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2023-01-31T08:43:22.953Z"></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2021 - 2023  <i id="heartbeat" class="fa fas fa-heartbeat"></i> 吴苏苏</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div><head><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/HCLonely/images@master/others/heartbeat.min.css"></head></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div></div><hr/><div id="local-search-results"></div><span class="search-close-button"><i class="fas fa-times"></i></span></div><div id="search-mask"></div></div><div><script src="https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/js/utils.js"></script><script src="https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/js/main.js"></script><script src="https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script src="https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/js/search/local-search.js"></script><script>var preloader = {
  endLoading: () => {
    document.body.style.overflow = 'auto';
    document.getElementById('loading-box').classList.add("loaded")
  },
  initLoading: () => {
    document.body.style.overflow = '';
    document.getElementById('loading-box').classList.remove("loaded")

  }
}
window.addEventListener('load',preloader.endLoading())</script><div class="js-pjax"><script>(() => {
  function loadValine () {
    function initValine () {
      let initData = {
        el: '#vcomment',
        appId: 'bpEki42zCLB5JxH1lgWDeEMW-gzGzoHsz',
        appKey: 'mCr7cYWuAyDJWrOWWf5cSxnz',
      }
      
      const valine = new Valine(initData)
    }

    if (typeof Valine === 'function') initValine() 
    else getScript('https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js').then(initValine)
  }

  window.pjax ? loadValine() : window.addEventListener('load', loadValine)
})()</script><script>function subtitleType () {
  getScript('https://sdk.jinrishici.com/v2/browser/jinrishici.js').then(() => {
    jinrishici.load(function (result) {
      if (true) {
        var sub = "当我们失去的时候，才知道自己曾经拥有。".length == 0 ? new Array() : "当我们失去的时候，才知道自己曾经拥有。".split(',')
        var content = result.data.content
        var both = sub.unshift(content)
        var typed = new Typed('#subtitle', {
          strings: sub,
          startDelay: 300,
          typeSpeed: 150,
          loop: true,
          backSpeed: 50,
        })
      } else {
        document.getElementById('subtitle').innerHTML = result.data.content
      }
    })
  })
}

if (true) {
  if (typeof Typed === 'function') {
    subtitleType()
  } else {
    getScript('https://cdn.jsdelivr.net/npm/typed.js/lib/typed.min.js').then(subtitleType)
  }
} else {
  subtitleType()
}
</script></div><script defer id="dsq-count-scr" src="//xianqi.disqus.com/count.js" async></script><script defer type="text/javascript" src="https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/js/sakura.js"></script><script defer type="text/javascript" src="https://cdn.jsdelivr.net/gh/zhaoze-jpg/Xianqi@main/js/animate.js"></script><div class="aplayer no-destroy" data-id="1776127550" data-server="tencent" data-type="playlist" data-fixed="true" data-mini="true" data-listFolded="false" data-order="random" data-preload="auto" data-autoplay="true" muted></div><canvas class="fireworks" mobile="false"></canvas><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/fireworks.min.js"></script><script defer="defer" id="fluttering_ribbon" mobile="false" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-fluttering-ribbon.min.js"></script><script id="canvas_nest" defer="defer" color="0,0,255" opacity="0.7" zIndex="-1" count="99" mobile="false" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-nest.min.js"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = false;
POWERMODE.mobile = false;
document.body.addEventListener('input', POWERMODE);
</script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script><script src="https://cdn.jsdelivr.net/gh/metowolf/MetingJS@1.2/dist/Meting.min.js"></script><script src="https://cdn.jsdelivr.net/npm/pjax/pjax.min.js"></script><script>let pjaxSelectors = [
  'title',
  '#config-diff',
  '#body-wrap',
  '#rightside-config-hide',
  '#rightside-config-show',
  '.js-pjax'
]

if (false) {
  pjaxSelectors.unshift('meta[property="og:image"]', 'meta[property="og:title"]', 'meta[property="og:url"]')
}

var pjax = new Pjax({
  elements: 'a:not([target="_blank"])',
  selectors: pjaxSelectors,
  cacheBust: false,
  analytics: false,
  scrollRestoration: false
})

document.addEventListener('pjax:send', function () {

  // removeEventListener scroll 
  window.removeEventListener('scroll', window.tocScrollFn)
  window.removeEventListener('scroll', scrollCollect)

  typeof preloader === 'object' && preloader.initLoading()
  
  if (window.aplayers) {
    for (let i = 0; i < window.aplayers.length; i++) {
      if (!window.aplayers[i].options.fixed) {
        window.aplayers[i].destroy()
      }
    }
  }

  typeof typed === 'object' && typed.destroy()

  //reset readmode
  const $bodyClassList = document.body.classList
  $bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode')

})

document.addEventListener('pjax:complete', function () {
  window.refreshFn()

  document.querySelectorAll('script[data-pjax]').forEach(item => {
    const newScript = document.createElement('script')
    const content = item.text || item.textContent || item.innerHTML || ""
    Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
    newScript.appendChild(document.createTextNode(content))
    item.parentNode.replaceChild(newScript, item)
  })

  GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update()

  typeof chatBtnFn === 'function' && chatBtnFn()
  typeof panguInit === 'function' && panguInit()

  // google analytics
  typeof gtag === 'function' && gtag('config', '', {'page_path': window.location.pathname});

  // baidu analytics
  typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]);

  typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()

  // Analytics
  if (false) {
    MtaH5.pgv()
  }

  // prismjs
  typeof Prism === 'object' && Prism.highlightAll()

  typeof preloader === 'object' && preloader.endLoading()
})

document.addEventListener('pjax:error', (e) => {
  if (e.request.status === 404) {
    pjax.loadUrl('/404.html')
  }
})</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"model":{"jsonPath":"/live2dw/assets/tororo.model.json"},"display":{"position":"left","width":150,"height":300},"mobile":{"show":false},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body></html>